# from celery_task.task1 import add
from celery_task.task2 import mutile
#
# ret1 = add.delay(10,12)
ret2 = mutile.delay(2,3)
# print(ret1)
print(ret2)

#执行延迟任务
from datetime import datetime,timedelta
#必须是utc时间，timedelta是时间对象，10秒后，days=,
eta = datetime.utcnow()+timedelta(seconds=30)
ret=mutile.apply_async(args=(10,5),eta=eta)
print(ret)

